package com.project2.service;


import com.project2.bean.CommonData;
import com.project2.bean.PageBo;
import com.project2.bean.po.MarketTopic;
import com.project2.bean.vo.CreateTopicVo;
import com.project2.bean.vo.ReadTopicVo;

import java.util.List;

public interface AdminTopicService {

    CommonData<MarketTopic> getAllTopics(PageBo page, String title, String subtitle);

    CreateTopicVo createTopic(MarketTopic newTopic);

    ReadTopicVo getSpecifiedTopicInfo(Integer id);

    MarketTopic updateTopicInfo(MarketTopic updatedTopic);

    void deleteTopic(MarketTopic deleteInfo);

    void batchDelete(List<Integer> ids);
}
